package com.situ.bean;

import java.util.Date;

public class Record {
    // 图书ID
    private Integer bookId;
    // 借书卡ID
    private Integer cardId;
    // 借出时间
    private Date broTime = new Date(0);
    // 归还时间
    private Date retTime = new Date(0);
    
    

    @Override
    public String toString() {
        return "| " + bookId + " | " + cardId + " | " + broTime + " | " + retTime
                + " |";
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public Integer getCardId() {
        return cardId;
    }

    public void setCardId(Integer cardId) {
        this.cardId = cardId;
    }

    public Date getBroTime() {
        return broTime;
    }

    public void setBroTime(Date broTime) {
        this.broTime = broTime;
    }

    public Date getRetTime() {
        return retTime;
    }

    public void setRetTime(Date retTime) {
        this.retTime = retTime;
    }

    public Record() {
        super();
    }

    public Record(Integer bookId, Integer cardId, Date broTime, Date retTime) {
        super();
        this.bookId = bookId;
        this.cardId = cardId;
        this.broTime = broTime;
        this.retTime = retTime;
    }

}
